* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 顶部导航栏 */
.top-nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.back-btn, .action-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.back-btn:hover, .action-btn:hover {
    background: #f5f6fa;
}

.top-nav h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* 主要内容区 */
.note-content {
    padding: 1.5rem;
}

/* 标题区域 */
.note-header {
    margin-bottom: 2rem;
}

.note-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.note-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #f8f9fa;
}

.note-meta i {
    font-size: 1rem;
}

/* 时间范围样式 */
.time-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time-item small {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 0.1rem;
}

.time-item span {
    font-size: 0.85rem;
    color: #2c3e50;
    padding: 0;
    background: none;
}

.time-separator {
    color: #7f8c8d;
    margin: 0 0.2rem;
}

/* 移动端适配时间显示 */
@media (max-width: 768px) {
    .time-range {
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }

    .time-separator {
        display: none;
    }

    .time-item {
        width: 100%;
    }

    .time-item span {
        font-size: 0.8rem;
    }
}

.priority.high {
    color: #e74c3c;
    background: #fde8e7;
}

.status.completed {
    color: #27ae60;
    background: #e8f5e9;
}

/* 负责人区域 */
.assignee-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.assignee-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    background: #e1e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.info h3 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
}

.info p {
    font-weight: 600;
    color: #2c3e50;
}

.change-assignee {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-assignee:hover {
    background: #fff;
    border-color: #3498db;
    color: #3498db;
}

/* 内容区域 */
.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-text {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Markdown 内容样式 */
.markdown-body {
    line-height: 1.6;
    word-wrap: break-word;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-body video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-body table th,
.markdown-body table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

.markdown-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.markdown-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.markdown-body pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.markdown-body blockquote {
    border-left: 4px solid #3498db;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
}

.markdown-body ul,
.markdown-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-body li {
    margin: 0.5rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .markdown-body {
        font-size: 0.9rem;
    }
    
    .markdown-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 附件区域 */
.attachments-section {
    margin-bottom: 2rem;
}

.attachments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 1rem;
}

.attachment-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.attachment-item span {
    flex: 1;
}

.download-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #edf2f7;
}

/* 评论区域 */
.comments-section {
    margin-bottom: 2rem;
}

.comments-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: #e1e8ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-time {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.comment-input {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.comment-input textarea {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    height: 100px;
    font-family: inherit;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #3498db;
}

.send-btn {
    align-self: flex-end;
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .note-content {
        padding: 1rem;
    }

    .note-title {
        font-size: 1.5rem;
    }

    .note-meta {
        flex-direction: column;
    }

    .note-meta span {
        width: 100%;
    }

    .assignee-section {
        flex-direction: column;
        gap: 1rem;
    }

    .change-assignee {
        width: 100%;
        justify-content: center;
    }
} 